#include <stdio.h>
int main(int argc, char const *argv[])
{
    int i=0,sum=0;
    do          //do...while语句先执行do，然后再while判断
    {
        i++;
        sum=sum+i;
        // printf("i=%d\n",i);
        
    } while (i<100);
    printf("sum=%d\n",sum);
    return 0;
}
